import React, { useEffect } from 'react';
import { PageContainer } from '@ant-design/pro-layout';
import { Button } from 'antd';




const openHerf: React.FC = () => {

    useEffect(() => {

    }, []);

    // setInitValues(props.values);
    return (
        <PageContainer>
            <Button type="primary" onClick={() => {
                window.location.href = "http://www.baidu.com"
            }}>当前页打开百度</Button>
            <Button onClick={() => {
                window.open("http://www.baidu.com")
            }}>新页面打开百度</Button>
        </PageContainer>
    )
}
export default openHerf;
